package com.example.study.plus.mybatis_plus.service;

import com.example.study.plus.mybatis_plus.entity.TokenUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 根据用户名username保存token的表 服务类
 * </p>
 *
 * @author 路飞4
 * @since 2023-04-15
 */
public interface TokenUserService extends IService<TokenUser> {

    TokenUser saveVoucher(Long userId, String userName,String token);

    int delVoucher(String token);

    TokenUser findTokenByUserName(String userName);
}
